<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>百度小相机</title>
    <style type="text/css">
        div {
            width: 240px;
            height: 240px;
            border: black 1px solid;
            background-size: cover;
        }

        div:nth-child(1) {
            background-image: url("https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/searchbox/nicon-10750f3f7d.png");
        }
        div:nth-child(2){
            background-image: url("https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/searchbox/nicon-10750f3f7d.png");
            background-position: 0 -480px;
        }
        div:nth-child(1):hover{
            background-position: 0 -240px;
        }
        div:nth-child(2):hover{
            background-position: 0 -720px;
        }
    </style>
</head>
<body>
<div></div>
<div></div>
</body>
</html>